<!-- project description -->
<cb:config-template xmlns:cb="urn:ccnet.config.builder">
  <!-- Project definitions -->
  <cb:include href="..\config-project01\defines.xml"/>

  <project name="$(project1.name)" queuePriority="$(project1.priority)">

    <workingDirectory>$(project1.working.dir)</workingDirectory>
    <artifactDirectory>$(project1.artifacts.dir)</artifactDirectory>


    <!-- define source control -->
    <cb:scope 
       task.description="get sources from svn"
       project.working.dir="$(project1.working.dir)" 
       project.svn.url="$(project1.svn.url)"
    >
      <cb:include href="..\config-global\svn.xml"/>
    </cb:scope>

    <!-- define triggers -->
    <cb:include href="..\config-global\triggers.xml"/>

    <cb:scope project.nunit.output="$(project1.nunit.output)">

      <tasks>
        <!-- define build -->
        <cb:scope  project.solution.path="$(project1.solution.path)">
          <cb:scope  project.for.build="$(project1.main.build.name)">
            <cb:scope  devenv.buildtype= "Clean"
                       task.description="Clear solution"
            >
              <cb:include href="..\config-global\task.devenv.xml"/>
            </cb:scope>
            <cb:scope  devenv.buildtype= "Rebuild"
                       task.description="Rebuild solution"
            >
              <cb:include href="..\config-global\task.devenv.xml"/>
            </cb:scope>
          </cb:scope>
          <cb:scope  devenv.buildtype="Build">
            <cb:scope project.for.build="$(project1.test.build.name)"
                      task.description="Build tests"
            >
              <cb:include href="..\config-global\task.devenv.xml"/>
            </cb:scope>
          </cb:scope>
        </cb:scope>

        <cb:define name="nunit.assemlies">
          <cb:include href="..\config-project01\test-dlls.xml"/>
        </cb:define>
        
	<cb:scope 
            task.description="Check NUnit tests"
            tests.dir="$(project1.tests.dir)"
            project.nunit.output="$(project1.nunit.output)"
        >
          <cb:include href="..\config-global\task.nunit.xml"/>
        </cb:scope>

      </tasks>
    </cb:scope>

    <state type="state" />
    <externalLinks>
        <cb:include href="..\config-global\ExternalLink.ccnet.xml"/>
        <cb:scope project.name="$(project1.name)" >
          <cb:include href="..\config-global\ExternalLink.LastBuild.xml"/>
        </cb:scope>
    </externalLinks>

    <!-- define labeller -->
    <!--cb:include href="labeller.test.xml"/-->

    <cb:scope  
             project.artifacts.dir="$(project1.artifacts.dir)"
             project.nunit.output="$(project1.nunit.output)"
    >
          <cb:include href="..\config-global\publishers.xml"/>
    </cb:scope>

  </project>
</cb:config-template>
